/**
 * Created by Noir on 1/6/14.
 */

var mongoose = require('mongoose');
var Schema = mongoose.Schema;

// need define enum and default for type
// need define enum and default for status
var trophySchema = new Schema({
    name:{
        type: String,
        required: true
    },
    description: String,
    createDate: {
        type: Date,
        default: Date.now
    },
    imageUrl:   {
        type: String,
        default: '/images/image-default.png'
    },
    type:   {
        type: String,
        required: true
    },
    status: {
        type: String,
        required: true
    }
});

module.exports = mongoose.model('Trophy', trophySchema);
